﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/3/24 15:42:13
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_PersonnelWages", new string[] { "PW_ID" })]
    public class PlmPersonnelwagesInfo : BaseEntity
    {
        public PlmPersonnelwagesInfo()
        {

        }


        private string _pwId;
        /// <summary>
        /// 人员工资主键
        /// </summary>
        [ColumnMap("PW_ID", System.Data.DbType.String)]
        public string PW_ID
        {
            get { return _pwId; }
            set
            {
                if (object.Equals(this._pwId, value) != true)
                {
                    this._pwId = value;
                    this.RaisePropertyChanged("PW_ID");
                }
            }
        }


        private int _pwUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("PW_UserID", System.Data.DbType.Int32)]
        public int PW_UserID
        {
            get { return _pwUserid; }
            set
            {
                if (object.Equals(this._pwUserid, value) != true)
                {
                    this._pwUserid = value;
                    this.RaisePropertyChanged("PW_UserID");
                }
            }
        }


        private string _pwUsername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("PW_UserName", System.Data.DbType.StringFixedLength)]
        public string PW_UserName
        {
            get { return _pwUsername; }
            set
            {
                if (object.Equals(this._pwUsername, value) != true)
                {
                    this._pwUsername = value;
                    this.RaisePropertyChanged("PW_UserName");
                }
            }
        }


        private DateTime _pwDate;
        /// <summary>
        /// 时间
        /// </summary>
        [ColumnMap("PW_Date", System.Data.DbType.DateTime)]
        public DateTime PW_Date
        {
            get { return _pwDate; }
            set
            {
                if (object.Equals(this._pwDate, value) != true)
                {
                    this._pwDate = value;
                    this.RaisePropertyChanged("PW_Date");
                }
            }
        }


        private string _pwJobnum;
        /// <summary>
        /// 工号
        /// </summary>
        [ColumnMap("PW_JobNum", System.Data.DbType.StringFixedLength)]
        [ExcelImportValidation("工号", 1, false, "工号不能为空", "")]
        public string PW_JobNum
        {
            get { return _pwJobnum; }
            set
            {
                if (object.Equals(this._pwJobnum, value) != true)
                {
                    this._pwJobnum = value;
                    this.RaisePropertyChanged("PW_JobNum");
                }
            }
        }


        private string _pwPersonnelid;
        /// <summary>
        /// 人员ID
        /// </summary>
        [ColumnMap("PW_PersonnelID", System.Data.DbType.String)]
        public string PW_PersonnelID
        {
            get { return _pwPersonnelid; }
            set
            {
                if (object.Equals(this._pwPersonnelid, value) != true)
                {
                    this._pwPersonnelid = value;
                    this.RaisePropertyChanged("PW_PersonnelID");
                }
            }
        }


        private string _pwPersonnelname;
        /// <summary>
        /// 人员姓名
        /// </summary>
        [ColumnMap("PW_PersonnelName", System.Data.DbType.StringFixedLength)]
        [ExcelImportValidation("姓名", 2, false, "姓名不能为空", "")]
        public string PW_PersonnelName
        {
            get { return _pwPersonnelname; }
            set
            {
                if (object.Equals(this._pwPersonnelname, value) != true)
                {
                    this._pwPersonnelname = value;
                    this.RaisePropertyChanged("PW_PersonnelName");
                }
            }
        }


        private int _pwUnitid;
        /// <summary>
        /// 单位ID
        /// </summary>
        [ColumnMap("PW_UnitID", System.Data.DbType.Int32)]
        public int PW_UnitID
        {
            get { return _pwUnitid; }
            set
            {
                if (object.Equals(this._pwUnitid, value) != true)
                {
                    this._pwUnitid = value;
                    this.RaisePropertyChanged("PW_UnitID");
                }
            }
        }


        private string _pwUnitcode;
        /// <summary>
        /// 单位编号
        /// </summary>
        [ColumnMap("PW_UnitCode", System.Data.DbType.StringFixedLength)]
        public string PW_UnitCode
        {
            get { return _pwUnitcode; }
            set
            {
                if (object.Equals(this._pwUnitcode, value) != true)
                {
                    this._pwUnitcode = value;
                    this.RaisePropertyChanged("PW_UnitCode");
                }
            }
        }


        private string _pwUnitname;
        /// <summary>
        /// 单位名称
        /// </summary>
        [ColumnMap("PW_UnitName", System.Data.DbType.StringFixedLength)]
        public string PW_UnitName
        {
            get { return _pwUnitname; }
            set
            {
                if (object.Equals(this._pwUnitname, value) != true)
                {
                    this._pwUnitname = value;
                    this.RaisePropertyChanged("PW_UnitName");
                }
            }
        }


        private int _pwAttendanceday;
        /// <summary>
        /// 出勤天数
        /// </summary>
        [ColumnMap("PW_AttendanceDay", System.Data.DbType.Int32)]
        public int PW_AttendanceDay
        {
            get { return _pwAttendanceday; }
            set
            {
                if (object.Equals(this._pwAttendanceday, value) != true)
                {
                    this._pwAttendanceday = value;
                    this.RaisePropertyChanged("PW_AttendanceDay");
                }
            }
        }


        private decimal _pwWages;
        /// <summary>
        /// 当月工资
        /// </summary>
        [ColumnMap("PW_Wages", System.Data.DbType.Decimal)]
        [ExcelImportValidation("当月工资", 3, false, "工资不能为空", "工资输入的格式不正确")]
        public decimal PW_Wages
        {
            get { return _pwWages; }
            set
            {
                if (object.Equals(this._pwWages, value) != true)
                {
                    this._pwWages = value;
                    this.RaisePropertyChanged("PW_Wages");
                }
            }
        }


        private string _pwRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("PW_Remark", System.Data.DbType.StringFixedLength)]
        [ExcelImportValidation("备注", 4, "")]
        public string PW_Remark
        {
            get { return _pwRemark; }
            set
            {
                if (object.Equals(this._pwRemark, value) != true)
                {
                    this._pwRemark = value;
                    this.RaisePropertyChanged("PW_Remark");
                }
            }
        }


    }
}



